const  Router  =  require('koa-router');
const  mongoose =require('mongoose');
const  Schema = mongoose.Schema;
const  UserSchema  =  new Schema({
     name:{
          type:String,
          require:true
     },
     email:{
        type:String,
        require:true
    },
    password:{
        type:String,
        require:true
    },
    avatar:{
        type:String,
   },
   Date:{
        type:Date,
        default:Date.now
   }
});
module.exports =  User = mongoose.model("users",UserSchema);
